package Job01.student;

import Job01.person.person;

public class student extends person {
    private char sex;

    public char getSex() {
        return sex;
    }
    public void setSex(char sex) {
        this.sex = sex;
    }

    public student(String name, int age, char sex) {
        super(name, age);
        this.sex = sex;
    }

    public student() {
    }

    @Override
    public void showInfo() {
        System.out.println("姓名:" +this.getName()+
                ",年龄:" +this.getAge()+
                ",性别:" +this.getSex());
    }
}
